package homework01;

import java.io.FileOutputStream;

public class AutoCloseableDemo {
    public static void main(String[] args) {
        try (FileOutputStream fos=new FileOutputStream("a.txt")){
            fos.write(1);
        }catch (Exception e){
            System.out.println("解决异常");
        }
    }
}
